package creational.abstractfactory;

/**
 * 具体的 Cpu 实现类
 */
public class AmdCpu implements ICpu {
    private int type;

    public AmdCpu(int type) {
        this.type = type;
    }

    @Override
    public void run() {
        if (this.type == 1) {
            System.out.println("AMDCUP1 运行中");
        } else if (this.type == 2) {
            System.out.println("AMDCUP2 运行中");
        } else if (this.type == 3) {
            System.out.println("AMDCUP3 运行中");
        }
    }
}
